let str: string = 'hello world'

// let len = str.length
// as 代表的断言
let len: number = (str as string).length
console.log(len)